package com.dingreading.cloud.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 员工代金券
 */
@Data
@Table(value = "coupon_staff")
public class CouponStaff implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 添加时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    private String addStaffUid;

    private String addStaffName;

    private String lastStaffUid;

    private String lastStaffName;

    private Long couponId;

    private Double couponMoney;

    private String couponName;

    /**
     * 商品状态 1.启用 0.禁用
     */
    private Integer enabled;

    private Long staffId;

    // 分类id 1.全额代金券 2.满减代金券 3.商品抵扣券
    private Long typeId;
    private String typeName;

    private Double usedMoney;

    private String staffUid;

    private String storeUid;

    private String fullName;

    private String storeName;

    private Double usableMoney;

    private Double conformMoney;

    private String remark;

    private String goodsIds;

    private String goodsCategoryIds;

}
